package com.example.pattern.singleton;

/**
 * 单例模式-"饿汉"模式
 */
public class Singleton {

    private Singleton(){}

    private static Singleton instance = new Singleton();

    public static Singleton getInstance(){
        return instance;
    }

}
